/**
 ****************************************************************************
 * Copyright (C) Marcelo F. Ochoa. All rights reserved.                      *
 * ------------------------------------------------------------------------- *
 * This software is published under the terms of the Apache Software License *
 * version 1.1, a copy of which has been included  with this distribution in *
 * the LICENSE file.                                                         *
 */

package com.prism.toolkit;

public class JowaSec extends Object {
    public static final int NO_CHECK = 1;
    public static final int GLOBAL = 2;
    public static final int PER_PACKAGE = 3;

    public static void SETAUTHORIZATION(int scheme) {
        Jowa.authScheme = scheme;
    }

    public static int GETAUTHORIZATION() {
        return Jowa.authScheme;
    }

    public static String GETUSERID() {
        return Jowa.userId;
    }

    public static void SETUSERID(String user) {
        Jowa.userId = user;
    }

    public static String GETPASSWORD() {
        return Jowa.password;
    }

    public static void SETPASSWORD(String pass) {
        Jowa.password = pass;
    }

    public static String GETCLIENTIP() {
        return Jowa.ipAddress;
    }

    public static void SETCLIENTIP(String ip) {
        Jowa.ipAddress = ip;
    }

    public static void SETPROTECTIONREALM(String realm) {
        Jowa.protectionRealm = realm;
    }

    public static String GETPROTECTIONREALM() {
        return Jowa.protectionRealm;
    }

    public JowaSec() {
    }
}
